<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基本资料</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        .layui-form-item .layui-input-company {width: auto;padding-right: 10px;line-height: 38px;}
    </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <div id="view">

        </div>
    </div>
</div>

<script id="userInfo" type="text/html">
    <div class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <div class="layui-form-mid layui-word-aux">{{ d.loginName }}</div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <div class="layui-form-mid layui-word-aux">{{ d.name }}</div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">手机</label>
            <div class="layui-input-block">
                <div class="layui-form-mid layui-word-aux">{{ d.phone }}</div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <div class="layui-form-mid layui-word-aux">{{ d.email }}</div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">QQ</label>
            <div class="layui-input-block">
                <div class="layui-form-mid layui-word-aux">{{ d.qq }}</div>
            </div>
        </div>
    </div>
</script>

<script src="../../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script>
    layui.use(['form','miniTab','laytpl'], function () {
        var form = layui.form,
            layer = layui.layer,
            laytpl = layui.laytpl,
            miniTab = layui.miniTab;


        var loginUser = JSON.parse(sessionStorage.getItem("loginUser"));
        var getTpl = document.getElementById('userInfo').innerHTML;
        var view = document.getElementById('view');
        laytpl(getTpl).render(loginUser, function(html){
            view.innerHTML = html;
        });
    });
</script>
</body>
</html>